<?php
/**
 * Created by PhpStorm.
 * User: zc
 * Date: 2019/8/5
 * Time: 23:36
 */
namespace app\api\controller\v1;

use app\common\controller\Api;
use app\common\logic\AboutLogic;

class About extends Api
{
    protected $noNeedLogin = ['getabout'];  //不能登陆方法
    protected $noNeedRight = '*';
    /**
     * 关于我们接口
     */
    public function getabout()
    {
        $type= $this->request->post('type/d', 0);
        if(!in_array($type, [0,1])){
            $this->error('类型错误！');
        }
        $model = new AboutLogic();
        $data = $model->setType($type)->getData();

        return view('v1/web/about',['data'=>$data]);
    }
}